import time
import db
import random

a  = time.strftime('%H:%M:%S',time.localtime(time.time()))
print(a)


# now = time.localtime()

# now_date = time.strftime("%Y-%m-%d",now)
# now_time = time.strftime("%H:%M:%S",now)
# print(now_date,now_time)


#开始时间
#star_date = "2022-03-01"

##进行格式转换
#st = datetime.datetime.strptime(star_date,"%Y-%m-%d")



#while st.day != 2:

    #wd = str(random.randint(21,29) + round(random.random(),1))
    #sd = str(random.randint(40,60))
    #xh = "-" + str(random.randint(90,165))

    #st = (st + datetime.timedelta(minutes=5))
    #db.insert(123,wd,sd,xh,"正常","正常","正常",st.strftime("%Y-%m-%d"),st.strftime("%H:%M:%S"))
    






    # out_date = (st + datetime.timedelta(minutes=5)).strftime("%H:%M:%S")
    # st = datetime.datetime.strptime(out_date,"%H:%M:%S")
#时间差

# while True:
#     out_date = (st + datetime.timedelta(days=1)).strftime("%Y-%m-%d")
#     url = "https://www.cp159.com/data/jspk10/lotteryList/"+out_date+".json"
#     test(url,out_date)
#     st = datetime.datetime.strptime(out_date,"%Y-%m-%d")
#     if st == ld:
#         sys.exit()        
#     time.sleep(1)